#include <assert.h>
#include "gismapgatewayao_factory.h"
#include "gismapgatewayao_stub4web.h"
#include "gismapgatewayao_stub4app.h"
//#include "gismapgatewayao.h"

using namespace erp::gis::ao;

bool CGisMapGatewayAoFactory::s_GisMapGatewayAoInit = false;

IGisMapGatewayAo* CGisMapGatewayAoFactory::GetObject(enum ObjType_T obj_type)
{
    switch(obj_type)
    {
    case STUB4APP:
        return (new CGisMapGatewayAoStub4App);
/*适应container3
    case POCO:
    {
        if(!s_GisMapGatewayAoInit)
        {
            int iRetCode = CGisMapGatewayAo::Initialize();
            assert(iRetCode == 0);
            s_GisMapGatewayAoInit = true;
        }   	
        return (new CGisMapGatewayAo);
	}*/
    default:
        assert(0);
    };
    return NULL;
}

IGisMapGatewayAoAsyc* CGisMapGatewayAoFactory::GetAsycObject()
{
	return (new CGisMapGatewayAoStub4App);
}
